﻿// <copyright file="ArmiesOwner.cs" company="Gravity Age Studios">
// Code released under the MIT license (see License.txt).
// </copyright>
// <author>Vicente Cartas Espinel</author>
// <email>vicente.cartas@gmail.com</email>
namespace LightSwitchApplication
{
    public partial class ArmiesOwner
    {
        #region View Army

        partial void ViewArmyDetails_CanExecute(ref bool result)
        {
            result = this.Collection.SelectedItem != null;
        }

        partial void ViewArmyDetails_Execute()
        {
            this.Application.ShowArmyViewOwner(this.Collection.SelectedItem.Id);
        }

        #endregion
    }
}
